<!---
	Title:		EPAR1.1 
	Author:		Bruce Frick
	Purpose:	NON SCF Step3 SpawnCreation.  
--->

<cfset BASE = CreateObject("component", "#session.rootDir#.cfc.base") />
<cfset baseQueries = CreateObject("component", "#session.rootDir#.cfc.queries") />

<cfoutput>
	<!---HTML header, css links, js links, and page title--->
    #BASE.htmlHeaderNonSCF(
    	"/jquery/ui-1.8.5/jquery-ui.min.js,/jquery/plugins/scrollTo/jquery.scrollTo-1.4.2-min.js, /" & session.rootDir & "/js/nonSCFStep3-SpawnCreation.js", <!---JS links--->
        "/jquery/ui-1.8.5/themes/cupertino/jquery-ui.css", <!---CSS links--->
        "Step 3: Spawn Creation", <!---Page Title--->
        "Status", <!---Active Nav Link--->
        "true" <!---Alternate menu.  Shows main EPAR links--->
    )#
    <!---HTML header, css links, js links, and page title--->    
    
    <cfif Session.Auth EQ True and (Session.strAuthType EQ Session.LIAISONS or Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR)>
    	  
    	<cfif not isdefined("Session.intUserRosettaID")>
        	
            <cflocation url="../status.cfm" addtoken="no">
        
        <cfelseif isdefined("URL.StepID")>
            
            <!---Query objects--->
            <cfset QUERIES = {
                GetEmpInfo = baseQueries.funcGetEmpInfo(URL.StepID)			
            } />            
            <!---Query objects--->
            
            <cfif QUERIES.GetEmpInfo.recordcount NEQ 0>
            
				<cfset Name = QUERIES.GetEmpInfo.First>
                <cfif QUERIES.GetEmpInfo.PreferredName NEQ "">
                    <cfset Name = Name & ' (' & QUERIES.GetEmpInfo.PreferredName & ')'>
                </cfif>
                <cfif QUERIES.GetEmpInfo.Middle NEQ "">
                    <cfset Name = Name & ' ' & QUERIES.GetEmpInfo.Middle>
                </cfif>
                <cfset Name = Name & ' ' & QUERIES.GetEmpInfo.Last>
                
                <cfset QUERIES.GETNonSCFTypes = baseQueries.funcGetNonSCFTypes(0, QUERIES.GetEmpInfo.NonSCFTypeID) />
                
                <cfform name="frmStep3">
                
                    <h1 class="title">Step 3: Create Contractor Records</h1>
                    <div class="entry">
                        
                        <p>The creation of the contractor records has been 
                        initiated for <strong>#Name#</strong>. Please wait 
                        while E-PAR generates the following system records:</p>                
                        
                        <table>
                            <tr>
                                <td >&nbsp;</td>
                                <td>
                                    <table>
                                        <tr>
                                            <td valign='top'>Network Account:</td>
                                            <td valign='top'>
                                                <span id="AD" class="error"></span>&nbsp;
                                                <img id="AD" src="../images/blank.jpg" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign='top'>Rosetta Stone Record:</td>
                                            <td valign='top'>
                                                <span id="Rosetta" class="error"></span>&nbsp;
                                                <img id="Rosetta" src="../images/blank.jpg" />  
                                            </td>
                                        </tr>
                                    </table>	                            	
                                </td>
                            </tr>
                            <tr>
                                <td width='25' colspan="2">&nbsp;</td>
                            </tr>
                            <tr>
                                <td width='25'>&nbsp;</td>
                                <td>
                                    
                                    <span id="Notice" class="error">
                                        During this time, please refrain from refreshing the page.
                                    </span>                            	
                                </td>
                            </tr>
                        </table>
                        <cfinput type="hidden" name="StepID" value="#URL.StepID#" />
                    
                    </cfform>
                    
                </div>
                
            <cfelse>
            	This employee has already been processed in Step 3.   To select another user, click <a href="../Status.cfm">Here</a>
            </cfif>
            
        <cfelse>
        	<cflocation url="../status.cfm" addtoken="no">
        </cfif>        
    
    <cfelse>
        <cflocation url="../denied.cfm" addtoken="no">
    </cfif>
    
    
    <!---HTML footer, closes html and body tags.  Any footer info goes here--->
    #BASE.htmlFooterNonSCF()#
    <!---HTML footer, closes html and body tags.  Any footer info goes here--->
</cfoutput>